package com.nmsl.system.guahao_charge.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nmsl.system.guahao_charge.mapper.guahao_gmhMapper;
import com.nmsl.system.guahao_charge.domain.guahao_gmh;
import com.nmsl.system.guahao_charge.service.Iguahao_gmhService;

/**
 * 挂号费用Service业务层处理
 * 
 * @author gmh
 * @date 2025-02-17
 */
@Service
public class guahao_gmhServiceImpl implements Iguahao_gmhService 
{
    @Autowired
    private guahao_gmhMapper guahao_gmhMapper;

    /**
     * 查询挂号费用
     * 
     * @param id 挂号费用主键
     * @return 挂号费用
     */
    @Override
    public guahao_gmh selectguahao_gmhById(Long id)
    {
        return guahao_gmhMapper.selectguahao_gmhById(id);
    }

    /**
     * 查询挂号费用列表
     * 
     * @param guahao_gmh 挂号费用
     * @return 挂号费用
     */
    @Override
    public List<guahao_gmh> selectguahao_gmhList(guahao_gmh guahao_gmh)
    {
        return guahao_gmhMapper.selectguahao_gmhList(guahao_gmh);
    }

    /**
     * 新增挂号费用
     * 
     * @param guahao_gmh 挂号费用
     * @return 结果
     */
    @Override
    public int insertguahao_gmh(guahao_gmh guahao_gmh)
    {
        return guahao_gmhMapper.insertguahao_gmh(guahao_gmh);
    }

    /**
     * 修改挂号费用
     * 
     * @param guahao_gmh 挂号费用
     * @return 结果
     */
    @Override
    public int updateguahao_gmh(guahao_gmh guahao_gmh)
    {
        return guahao_gmhMapper.updateguahao_gmh(guahao_gmh);
    }

    /**
     * 批量删除挂号费用
     * 
     * @param ids 需要删除的挂号费用主键
     * @return 结果
     */
    @Override
    public int deleteguahao_gmhByIds(Long[] ids)
    {
        return guahao_gmhMapper.deleteguahao_gmhByIds(ids);
    }

    /**
     * 删除挂号费用信息
     * 
     * @param id 挂号费用主键
     * @return 结果
     */
    @Override
    public int deleteguahao_gmhById(Long id)
    {
        return guahao_gmhMapper.deleteguahao_gmhById(id);
    }
}
